{"version":3,"file":"url_list.map.js","names":["BX","namespace","addClass","Landing","Utils","removeClass","append","onCustomEvent","setTextContent","create","style","isNumber","isString","isPlainObject","isArray","addQueryParams","TYPE_PAGE","TYPE_BLOCK","TYPE_SYSTEM","TYPE_CRM_FORM","TYPE_CRM_PHONE","TYPE_USER","SidebarButton","UI","Button","Panel","URLList","id","data","Content","apply","this","arguments","layout","overlay","hidden","dataset","isShown","refresh","bind","Main","isEditorMode","window","parent","document","body","parentNode","removeChild","appendChild","marginTop","loader","Loader","target","content","promiseResolve","isNeedLoad","cache","Cache","MemoryCache","getInstance","instance","prototype","constructor","__proto__","showLoader","show","view","options","showOptions","call","clear","title","panelTitle","Loc","getMessage","showSites","showBlocks","showForms","showPhones","Promise","resolve","currentSiteId","siteId","width","Type","filter","env","Env","isNil","ID","getType","getSiteId","SPECIAL","Backend","getSites","then","sites","forEach","site","parseInt","appendSidebarButton","createCurrentSiteButton","currentSiteButton","text","TITLE","onClick","currentSiteOnly","onSiteClick","enableAreas","child","active","button","getLandings","filterLanding","landings","fakeEvent","currentTarget","siteClick","disableAddPage","appendCard","Card","AddPageCard","onSave","addPageSave","landing","IS_AREA","LandingPreviewCard","description","DESCRIPTION","preview","PREVIEW","onLandingClick","hide","currentLandingId","landingId","sitesIds","map","reduce","result","index","currentLandings","SITE_ID","activeButton","isActive","currentPageOnly","createLandingSidebarButton","Object","keys","createSiteSidebarButton","click","action","form","cardParams","NAME","className","onFormChange","IS_CALLBACK_FORM","BaseCard","type","name","getOptions","references","item","onPhoneChange","phone","value","onLandingChange","event","currentSelectedLanding","sidebarButtons","activate","deactivate","showPreviewLoader","createIframeIfNeed","loadPreviewSrc","buildLandingPreviewUrl","hidePreviewLoader","editorUrl","params","sef_url","landing_view","replace","landing_mode","src","previewFrame","onload","contentDocument","removePanels","slice","querySelectorAll","wrapper","setAttribute","classList","add","addEventListener","preventDefault","mainNode","closest","Dom","attr","onBlockClick","getAttribute","display","previewFrameWrapper","opacity","attrs","innerHTML","requestAnimationFrame","containerWidth","clientWidth","height","transform","border","isTrusted","getBlocks","blocks","currentBlock","find","block","onChange","alias","onSystemClick","createLandingPreview","reloadFn","backend","delete","createBlockPreview","BlockHTMLPreview","getLanding","key","JSON","stringify","remember","get_preview","response","getBlock","cacheKey","edit_mode"],"sources":["url_list.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAWF,GAAGG,QAAQC,MAAMF,SAChC,IAAIG,EAAcL,GAAGG,QAAQC,MAAMC,YACnC,IAAIC,EAASN,GAAGG,QAAQC,MAAME,OAC9B,IAAIC,EAAgBP,GAAGG,QAAQC,MAAMG,cACrC,IAAIC,EAAiBR,GAAGG,QAAQC,MAAMI,eACtC,IAAIC,EAAST,GAAGG,QAAQC,MAAMK,OAC9B,IAAIC,EAAQV,GAAGG,QAAQC,MAAMM,MAC7B,IAAIC,EAAWX,GAAGG,QAAQC,MAAMO,SAChC,IAAIC,EAAWZ,GAAGG,QAAQC,MAAMQ,SAChC,IAAIC,EAAgBb,GAAGG,QAAQC,MAAMS,cACrC,IAAIC,EAAUd,GAAGG,QAAQC,MAAMU,QAC/B,IAAIC,EAAiBf,GAAGG,QAAQC,MAAMW,eAEtC,IAAIC,EAAY,UAChB,IAAIC,EAAa,QACjB,IAAIC,EAAc,SAClB,IAAIC,EAAgB,eACpB,IAAIC,EAAiB,WACrB,IAAIC,EAAY,OAEhB,IAAIC,EAAgBtB,GAAGG,QAAQoB,GAAGC,OAAOF,cAWzCtB,GAAGG,QAAQoB,GAAGE,MAAMC,QAAU,SAASC,EAAIC,GAE1C5B,GAAGG,QAAQoB,GAAGE,MAAMI,QAAQC,MAAMC,KAAMC,WAExC9B,EAAS6B,KAAKE,OAAQ,6BACtB/B,EAAS6B,KAAKG,QAAS,qCACvBhC,EAAS6B,KAAKG,QAAS,mBAEvBH,KAAKG,QAAQC,OAAS,KACtBJ,KAAKG,QAAQE,QAAQC,QAAU,QAG/B9B,EAAc,wBAAyBwB,KAA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